class Focus {
  constructor (player) {
    this.player = player

    this.init()
  }

  init () {
    const player = this.player

    document.addEventListener(
      'click',
      () => {
        player._status.focus = false
      },
      true
    )
    player.dom.container.addEventListener(
      'click',
      () => {
        player._status.focus = true
      },
      true
    )
  }
}

export default Focus
